package com.test.security.example01;

/**
 * .
 *
 * @author: bcc
 * 2020/6/8
 */
public class Safe2 {
    public static void main(String[] args) {

        System.setProperty("java.security.policy", "D:\\gitee\\javatest\\src\\main\\resources\\demo.policy");

        //安装安全管理器
        System.setSecurityManager(new SecurityManager());

        System.out.println(System.getProperty("java.home"));
    }
}
